﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListCustomersControl.ascx.cs"
    Inherits="Hutech.CRM.Web.Controls.ManageCustomers.ListCustomersControl" %>
<asp:DropDownList ID="DropDownListPageNumber" runat="server" CssClass="h-control"
    AutoPostBack="true">
</asp:DropDownList>
<asp:DataList ID="DataListCustomers" DataKeyField="AccountCustomerGuid" runat="server">
    <HeaderTemplate>
        <table>
            <tr>
                <td>
                    ho ten
                </td>
                <td>
                    dien thoai
                </td>
                <td>
                    level
                </td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <%--<asp:Panel ID="PanelLine" runat="server">--%>
            <tr>
                <td>
                    <%--<asp:HiddenField ID="HiddenFieldIsActive" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "IsActive") %>' />--%>
                    <asp:ImageButton ImageUrl='<%# EditPropertiesImage %>' CommandName="EditCommand"
                        AlternateText="<%# Resources.Resource.RolesEditLabel %>" ToolTip="<%# Resources.Resource.RolesEditLabel %>"
                        runat="server" ID="ImageButtonEdit" />&nbsp;&nbsp;
                    <asp:ImageButton ImageUrl='<%# DeleteLinkImage %>' CommandName="DeleteCommand" AlternateText="<%# Resources.Resource.RolesDeleteLabel %>"
                        ToolTip="<%# Resources.Resource.RolesDeleteLabel %>" runat="server" ID="ImageButtonDelete"
                        OnClientClick="return confirm('Bạn đã chọn xoá dữ liệu...?');" />
                    <%--<%# DataBinder.Eval(Container.DataItem, "Symbols")%>--%>
                    <%# DataBinder.Eval(Container.DataItem, "HoTen")%> 
                </td>
                <td>
                    <%# DataBinder.Eval(Container.DataItem, "DienThoai")%>
                </td>
                <td>
                    <%# DataBinder.Eval(Container.DataItem, "LevelName")%>
                </td>
            </tr>
        <%--</asp:Panel>--%>
    </ItemTemplate>
    <EditItemTemplate>
        <tr>
            <td>
                <asp:HiddenField ID="HiddenFieldKeyKindGuid" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "AccountCustomerGuid") %>' />
                <%--<asp:DropDownList ID="DropDownListKindCategoriesEdit" Width="200" runat="server" />--%>
                <asp:TextBox ID="TextBoxName" Text='<%# DataBinder.Eval(Container.DataItem, "HoTen") %>'
                    runat="server" />
            </td>
            <td>
                
                    <asp:TextBox ID="TextBoxPhoneNumber" Text='<%# DataBinder.Eval(Container.DataItem, "DienThoai") %>'
                    runat="server" />
            </td>
            <td>
                <asp:TextBox ID="TextBoxAddress" Text='<%# DataBinder.Eval(Container.DataItem, "DiaChi") %>'
                    runat="server" />

                <asp:ImageButton ID="ImageButtonSave" CssClass="ImageButtonSave-32 ImageButton" ImageUrl="~/Resources/img/none-32.png"
                    runat="server" Text="Save" ToolTip="Lưu" CommandName="ApplyCommand" />
                <asp:ImageButton ID="ImageButtonExit" CssClass="ImageButtonExit-32 ImageButton" ImageUrl="~/Resources/img/none-32.png"
                    runat="server" Text="Exit" ToolTip="Thoát" CommandName="CancelCommand" />
            </td>
        </tr>
    </EditItemTemplate>
    <FooterTemplate>
    <tr><td>Tong so luong</td><td></td><td>50000</td></tr>
        </table>
    </FooterTemplate>
</asp:DataList>
<MyC:mojoCutePager ID="pgrItems" runat="server" />
